<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.routing.dashboard.actions.override">

  <require>org.nuxeo.ecm.platform.routing.dashboard.actions</require>

  <documentation>

    Main workflow tab, and sample sub tab, disabled by default.
    <p>
      To enable them, add the following contribution:
    </p>
<code>
    <require>org.nuxeo.ecm.platform.routing.dashboard.actions
      </require>
    <extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">
        <action enabled="true" id="workflow_dashboard"/>
        <action enabled="true" id="all_tasks"/>
    </extension>
</code>

  </documentation>
  <extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <action enabled="false" id="workflow_dashboard" label="label.main.tab.workflow" link="view_workflow" order="30" type="main_tab">
      <category>MAIN_TABS</category>
    </action>

    <action enabled="false" id="routing_tasks" label="action.view.workflow.tasks" link="/incl/tabs/workflow_dashboard_tab.xhtml" order="10" type="rest_document_link">
      <category>WORKFLOW_DASHBOARD</category>
    </action>

    <!--since 5.7.3 -->
    <action icon="/icons/workflow_definition.png" id="WorkflowHome" label="tab.admin.workflow" link="/view_home_task.xhtml" order="20">
      <properties>
        <property name="alwaysDisplaySubTabs">false</property>
      </properties>
      <category>USER_CENTER</category>
      <filter-id>not_anonymous</filter-id>
    </action>

    <!--since 5.7.3 -->
    <action id="UsersTasks" label="title.dashboard.userTasks" link="/incl/home/user_open_tasks.xhtml" order="40">
      <category>WorkflowHome_sub_tab</category>
      <filter-id>not_readonly</filter-id>
    </action>

    <action id="go_back_to_tasks_view" label="command.back" link="#{routingTaskActions.navigateToTasksView()}" order="10">
      <category>TASK_ADDITIONAL_ACTIONS</category>
    </action>

  </extension>

</component>
